import request from '@/utils/request'

// 扫码检查
export function checkScan(type,uniCode) {
  const data = {uniCode}
  return request({
    url: `/authing/rest/check/${type}`,
    headers: {  isToken: false },
    method: 'get',
    params: data
  })
}

// 微信小程序扫码登录
export function wxMaScanLogin(uniCode,phone,sign,tenantId) {
  const query = {uniCode,phone,sign,tenantId}
  return request({
    url: '/oauth/sms/login',
    headers: {  isToken: false },
    method: 'get',
    params: query
  })
}


// 获取路由
export function getRouters (){
  return request({
    url: '/getRouters',
    method: 'get'
  })
}
